﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DLUProject.Domain;
using DLUProject.Data;
using DLUProject.Services;
using ColorLife.Core.Helper;

public partial class Admin_Default : BasePage
{

    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        PlaceHolder1.Controls.Add(LoadControl(@"/Shared/Modules/WorkGroupModule.ascx"));
        //if (Server.UrlEncode(Request.QueryString["funtion"]) == null)
        //{
        //    PlaceHolder1.Controls.Add(LoadControl(@"Modules/Dashboard.ascx"));
        //}
        //else
        //{
        //    string id = Server.UrlEncode(Request.QueryString["funtion"]);
        //    var function = _functionService.Get(id.ToInt());
        //    if (function != null)
        //    {
        //        PlaceHolder1.Controls.Add(LoadControl(function.WorkGroup.Url + "/" + function.Url));
        //    }
        //}
        
    }    
}